package com.hnjfzn.message.sms.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
public class HuLianConfig {
    private static String appKey;
    private static String appSecret;
    private static String appCode;

    public static String getAppKey() {
        return appKey;
    }

    @Value("${sms.hulian.key}")
    public void setAppKey(String appKey) {
        HuLianConfig.appKey = appKey;
    }

    public static String getAppCode() {
        return appCode;
    }

    @Value("${sms.hulian.code}")
    public void setAppCode(String appCode) {
        HuLianConfig.appCode = appCode;
    }

    public static String getAppSecret() {
        return appSecret;
    }

    @Value("${sms.hulian.secret}")
    public void setAppSecret(String appSecret) {
        HuLianConfig.appSecret = appSecret;
    }
}
